namespace Eno.Domain.Repositories;

public interface IRepository<T>
{
    Task<IEnumerable<T>> GetRoleAllAsync();

    Task<T?> GetRoleByNameAsync(string roleName);

    Task<T?> GetRoleByIdAsync(Guid guid);
    
    Task<int> AdditionRoleAsync(T entity);

    Task<int> DeleteRoleAsync(Guid guid);

    Task<int> UpdateRoleAsync(T entity);
}